﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //Console.Write(GetHiht(5));
            string text =
                "D4JrzcZUwR3KW8wWw9ghXLFjPsNQW4yEYHlavhceamBFCPMucPCzPJBW5+NIx7OunoDtRBr8IH2/Vgr5ewJLTPz/bcLTBDEhJb/QtJxrC4r9ZifC9pFgOFaqgWthW3BrJUZXhp+kG1a3t8rdv/rS2fdsRvEYO/zHPt2eda+KVxlMksf5VwyXHu2ocfTmSwHP9K1ozyr35t1YVVB1dXtLttt8sApM+gK9I4hZJnyv8czurdEjqQ2NqLQDhplZLFEv10Dn5IFH/iJFW1ob1P5u1TJfjyeHyeFZcr93kU25yjpDTLa/p6Vspb2r9xJIluTkTDf5CgETJF2mLJV2GXHIR0FFM/9NAensuTOIV7sr172GduhZPw7MO7pJ7pBTlwHX8dQBR5IWH4N0b1Cfvn2WU0X3gwcdn/IUASrtlZffeHo+ehkt/PCLoL+5avBBIPiDjlnn47Lk5Ue2JHxE5kmKodwU3TbxSbEEq/6qbRy6xks=";
            AESHelper.AESDecrypt(text);
            Console.Read();
        }
        public static string GetHiht( int rmNum)
        {        
            Random rm = new Random();

            var end = "";
            end = end.PadLeft(rmNum, '9');
            var endInt = int.Parse(end);
            int nValue = rm.Next(10 * rmNum, endInt);
            
            return nValue.ToString();
        }

        private static string ChangeStr(string secretCopy, int index)
        {
            var temp = "";
            temp = secretCopy.Substring(0, index) + "A";
            if (index + 1 != secretCopy.Length)
            {
                temp += secretCopy.Substring(index + 1, secretCopy.Length - index - 1);
            }
            secretCopy = temp;
            return secretCopy;
        }
    }
}
